package com.example.pm.ending.server.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class PublishTypeAddNewDTO implements Serializable {
    /**
     * 公布类型名称
     * */
    @ApiModelProperty(value = "公布类型名称", required = true)
    @NotNull(message = "添加公布类型失败，必须添加公布类型名称！")
    private String name;
    /**
     * 描述
     * */
    @ApiModelProperty(value = "描述", required = true)
    @NotNull(message = "添加描述失败，必须添加描述内容！")
    private String description;
}
